package com.houtai.bean.dto.wiki;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel(value="添加百科所需参数", description="添加百科所需参数")
public class TdWikiInsertDto {

    @NotEmpty(message = "词条名称不能为空")
    @Length(max = 50, message = "词条名称最多50个字符")
    @ApiModelProperty(value="词条名称", name="entry_name")
    private String entry_name;

    @NotEmpty(message = "词条简介不能为空")
    @Length(max = 500, message = "词条简介最多500个字符")
    @ApiModelProperty(value="词条简介", name="entry_intro")
    private String entry_intro;

    @NotNull(message = "词条类别id不能为空")
    @ApiModelProperty(value="词条类别 id", name="entry_type")
    private int entry_type;

    @NotEmpty(message = "中文名不能为空")
    @Length(max = 50, message = "中文名最多50个字符")
    @ApiModelProperty(value="中文名", name="chinese_name")
    private String chinese_name;

    @NotEmpty(message = "修订时间不能为空")
    @Length(max = 30, message = "修订时间最多30个字符")
    @ApiModelProperty(value="修订时间", name="revision_time")
    private String revision_time;

    @NotEmpty(message = "实施时间不能为空")
    @Length(max = 30, message = "实施时间最多30个字符")
    @ApiModelProperty(value="实施时间", name="impl_time")
    private String impl_time;

    @NotEmpty(message = "发布单位不能为空")
    @Length(max = 100, message = "发布单位最多100个字符")
    @ApiModelProperty(value="发布单位", name="release_unit")
    private String release_unit;

    @NotNull(message = "模块列表不能为空")
    private List<TdWikiConInsert> cons;

    public String getEntry_name() {
        return entry_name;
    }

    public void setEntry_name(String entry_name) {
        this.entry_name = entry_name;
    }

    public String getEntry_intro() {
        return entry_intro;
    }

    public void setEntry_intro(String entry_intro) {
        this.entry_intro = entry_intro;
    }

    public int getEntry_type() {
        return entry_type;
    }

    public void setEntry_type(int entry_type) {
        this.entry_type = entry_type;
    }

    public String getChinese_name() {
        return chinese_name;
    }

    public void setChinese_name(String chinese_name) {
        this.chinese_name = chinese_name;
    }

    public String getRevision_time() {
        return revision_time;
    }

    public void setRevision_time(String revision_time) {
        this.revision_time = revision_time;
    }

    public String getImpl_time() {
        return impl_time;
    }

    public void setImpl_time(String impl_time) {
        this.impl_time = impl_time;
    }

    public String getRelease_unit() {
        return release_unit;
    }

    public void setRelease_unit(String release_unit) {
        this.release_unit = release_unit;
    }

    public List<TdWikiConInsert> getCons() {
        return cons;
    }

    public void setCons(List<TdWikiConInsert> cons) {
        this.cons = cons;
    }
}
